package c.c.c.a.i.a;

import android.content.Context;
import c.c.c.a.e.a;
import c.c.c.a.e.b;
import c.c.c.a.f;
import c.c.c.a.m;
import c.c.c.a.n;
import java.util.Map;

/* compiled from: JavaCrashAssembly */
public class g extends c {
    public g(Context context, b bVar, d dVar) {
        super(f.JAVA, context, bVar, dVar);
    }

    public a a(a aVar) {
        aVar = super.a(aVar);
        aVar.b("app_count", Integer.valueOf(1));
        aVar.b("magic_tag", "ss_app_log");
        String str = "crash_update_version_code";
        String str2 = "crash_version_code";
        Map a = n.c.a();
        String str3 = "app_version";
        if (a.containsKey(str3)) {
            aVar.b("crash_version", a.get(str3));
        }
        String str4 = "version_name";
        if (a.containsKey(str4)) {
            aVar.b(str3, a.get(str4));
        }
        str3 = "version_code";
        if (a.containsKey(str3)) {
            try {
                aVar.b(str2, Integer.valueOf(Integer.parseInt(a.get(str3).toString())));
            } catch (Exception unused) {
                aVar.b(str2, a.get(str3));
            }
        }
        str2 = "update_version_code";
        if (a.containsKey(str2)) {
            try {
                aVar.b(str, Integer.valueOf(Integer.parseInt(a.get(str2).toString())));
            } catch (Exception unused2) {
                aVar.b(str, a.get(str2));
            }
        }
        b a2 = b.a(this.b);
        a2.c(n.c.a());
        a2.b(n.a().a());
        a2.e(this.c.c());
        aVar.a(a2);
        m.f.a(aVar, a2, this.a);
        return aVar;
    }
}
